{% extends 'common/base.html' %}
{% load staticfiles %}


{% block body %}

    {% include 'common/status.html' %}


	<div class="search_bar clearfix">
        {% include 'common/logo.html' %}
		<div class="sub_page_name fl">|&nbsp;&nbsp;&nbsp;&nbsp;用户中心</div>
		<div class="search_con fr">
			<input type="text" class="input_text fl" name="" placeholder="搜索商品">
			<input type="button" class="input_btn fr" name="" value="搜索">
		</div>		
	</div>

	<div class="main_con clearfix">
        {% include 'common/left_menu.html' with flag='info' %}
		<div class="right_content clearfix">
				<div class="info_con clearfix">
				<h3 class="common_title2">基本信息</h3>
						<ul class="user_info_list">
							<li><span>收件人：</span>{{ user.user_recv|default:'未填写' }}</li>
							<li><span>联系方式：</span>{{ user.user_tele|default:'未填写' }}</li>
							<li><span>联系地址：</span>{{ user.user_addr|default:'未填写' }}</li>
						</ul>
				</div>
				
				<h3 class="common_title2">最近浏览</h3>
				<div class="has_view_list">
					<ul class="goods_type_list clearfix">



{#				<li>#}
{#					<a href="#"><img src="{% static "images/goods/goods006.jpg" %}"></a>#}
{#					<h4><a href="#">进口西梅</a></h4>#}
{#					<div class="operate">#}
{#						<span class="prize">￥28.80</span>#}
{#						<span class="unit">28.8/500g</span>#}
{#						<a href="#" class="add_goods" title="加入购物车"></a>#}
{#					</div>#}
{#				</li>#}

                {% for record in records %}
				<li>
					<a href="{% url 'goods:detail' %}?id={{ record.browse_good.id }}"><img src="{%  static  record.browse_good.good_image %} "></a>
					<h4><a href="{% url 'goods:detail' %}?id={{ record.browse_good.id }}">{{ record.browse_good.good_name }}</a></h4>
					<div class="operate">
						<span class="prize">￥{{ record.browse_good.good_price }}</span>
						<span class="unit">{{ record.browse_good.good_price }}/{{ record.browse_good.good_unit }}g</span>
						<a href="#" class="add_goods" title="加入购物车"></a>
					</div>
				</li>
                {% endfor %}

			</ul>
		</div>
		</div>
	</div>

{% endblock body %}
